package com.liu.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liu.goods.entity.StockEntity;
import com.liu.shop.common.exception.LockStockException;
import com.liu.shop.common.utils.PageUtils;
import com.liu.shop.common.vo.StockVo;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author lls
 * @email 302140431@qq.com
 * @date 2021-08-03 16:30:12
 */
public interface StockService extends IService<StockEntity> {

    PageUtils queryPage(Map<String, Object> params);

    Boolean lockStock(List<StockVo> stockVoList) throws LockStockException;

    Boolean unLockStock(List<StockVo> stockVoList);
}

